<?php

namespace application\controllers;

use application\BaseController;
use fastphp\facade\Db;
use fastphp\facade\Request;
use fastphp\facade\Session;
use fastphp\util\Directory;
use fastphp\util\Header;
use fastphp\util\JwtHandler;

class IndexController extends BaseController
{
    public function index()
    {
        if (Request::isGet()) {
            if (!is_file('../fastphp/token/installed.txt')) {
                Header::setLocation('./install.php');
                exit();
            }
        }
        echo '<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> html,body{ height: 100%; } #main{ width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; } </style> </head> <body> <div id="main"> <img style="width: 300px;height: 300px;" src="../static/img/welcome.jpeg" alt="" /> <h1>欢迎使用Mini PHP MVC框架</h1> <p >开发者：xujack</p> </div> </body> </html>';
    }

}